package cn.exptest;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

import cn.log.Log;

public class ExpRegTest {

	/**
	 * @param args
	 * @throws ParseException 
	 */
	public static void main(String[] args) throws ParseException {
		/*String content = "Beautyleg 美腿写真 No.1043 Lynn";
		String testreg = "(Beautyleg)";
//		Matcher m = Pattern.compile(reg).matcher(content);
		Matcher m =Pattern.compile(testreg).matcher(content);
		Log.info(m.matches()+""+m.find());
		while(m.find()){
			Log.info(m.matches()+"-->"+m.group());
		}*/
		
		String datestr = "20150106";
		SimpleDateFormat fmt = new SimpleDateFormat("yyyyMMdd");
		Date date = fmt.parse(datestr);
		SimpleDateFormat fmt1 = new SimpleDateFormat("yyyy-MM-dd");
		Log.info(fmt1.format(date));
	}

}
